package top.yihoxu;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import top.yihoxu.client.ApiClient;

/**
 * @Author dth
 * @Date 2024/7/22 21:56
 * @PackageName:top.yihoxu
 * @ClassName: APiClientConfig
 * @Description: TODO
 * @Version 1.0
 */
@Configuration
@ConfigurationProperties(prefix = "top.yihoxu")
@Data
@ComponentScan
public class ApiClientConfig {
    private String accessKey;
    private String secretKey;

    @Bean
    public ApiClient apiClient() {
        return new ApiClient(accessKey, secretKey);
    }
}
